const proxy = require('http-proxy-middleware')

module.exports = function(app){
   app.use(
        proxy( 
           "/my",{
           "target":"http://m.hao123.com",
           "changeOrigin":true,
           "pathRewrite":{
             "^/my":"/"
           }
         }
         )
         )
               }